import service from '../request'

// 获取图层
export function getLayer() {
  return service({
    url: '/layer/all',
    method: 'get',
  })
}

// 新增图层
export function postAddLayer(params) {
  return service({
    url: '/layer/',
    method: 'post',
    data: params,
  })
}

//
export function putLayer(params) {
  return service({
    url: `/layer/`,
    method: 'put',
    data: params,
  })
}

// 删除图层
export function deleteLayer(params) {
  return service({
    url: `/layer/${params}`,
    method: 'delete',
  })
}

// 目标消息
export function getmessag() {
  return service({
    url: '/layer/TargetPoint_all',
    method: 'get',
  })
}
